package com.swt.draw.config.shiro;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 根据角色登录
 */
@Data
@NoArgsConstructor
public class CustomToken extends UsernamePasswordToken {

    private String loginType;

    public CustomToken(String username, String password, String loginType) {
        super(username, password);
        this.loginType = loginType;
    }
}
